﻿@model HdipCricketClub.Models.Team

@{
    ViewBag.Title = "Delete";
}

<h2>Delete Team</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Team</legend>

    <div class="display-label">@Html.LabelFor(model => model.name)</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.name)
    </div>

    <div class="display-label">Captain:</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Member.first_name) @Html.DisplayFor(model => model.Member.last_name)
    </div>

    <div class="display-label">Club:</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Club.name)
    </div>
</fieldset>
@using (Html.BeginForm())
{
    <p>
        <input type="submit" value="Delete Team" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
